<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<%@page import="dyyx.dto.*"%>
<%@page import="dyyx.util.*"%>
<%@page import="java.util.*"%>

<%
WebResult webResult = new WebResult();
DubboViewWebUtil.listAllService(request, webResult);
List<NodeData> list = webResult.list;
if(list==null){
	list = new ArrayList<NodeData>();
}


%>
<%@include file="/comm.jsp"%>

<hr>

<%=new Date() %> 
<hr>

<%=webResult.msg %>  <br>
zookeeper:<%=ClientUtil.getZkInfoForDubbo() %> <br>

<a href="../zookeeper/form.jsp"> zookeeper 连接设置 </a>  &nbsp;&nbsp;&nbsp;

<a href="../">HOME</a>

<hr>

<table>
<tr class='title'>
<td>service</td>
<td>create</td>
<td>modify</td>

</tr>

<%for(NodeData item:list){ 
String service = DubboUtil.getService(item.path);
%>
<tr>
<td><a href="service.jsp?service=<%=service %>"><%=service %></a></td>
<td><%=CommUtil.getDateString(new Date(item.stat.getCtime())) %></td>
<td><%=CommUtil.getDateString(new Date(item.stat.getMtime())) %></td>
</tr>

<%} %>
</table>
